package com.calvin.study.classloader;

public class ChildClass extends ClassLoaderTest01 {
	private int c1 = getValue();
	private static int c2 = getValue2();

	public ChildClass() {
		System.out.println("我是子构造器");
	}

	static {
		System.out.println("我是子静态代码块1");
	}
	static {
		System.out.println("我是子静态代码块2");
	}
	{
		System.out.println("我是子代码块1");
	}
	{
		System.out.println("我是子代码块2");
	}

	private int getValue() {
		System.out.println("我是子成员变量c1");
		return 1;
	}

	private static int getValue2() {
		System.out.println("我是子静态成员变量c2");
		return 1;
	}

	public static void main(String[] args) {
		ChildClass childClass = new ChildClass();
	}
}
